<template>
  <div class="wrap">
    <!-- 创巢 -->
    <home-component v-if="state == 1"></home-component>
    <!-- 水楼台 -->
    <home-page v-if="state == 2"></home-page>
    <!-- 科荟融 -->
    <home-bank v-if="state == 3"></home-bank>
    <!-- 信用园区管理服务平台 -->
    <home-xin v-if="state == 4"></home-xin>
  </div>
</template>

<script>
let CONSTANT = require("../../constant/constant.js"),
  common = require("../../common.js");
export default {
  data() {
    return {
      state: ""
    };
  },
  created() {
    let arr = location.hostname.split(".");
    let urlName = arr[0] == "www" ? arr[1] : arr[0];
    switch (urlName) {
      case "localhost":
        this.state = 1;
        break;
      case "fu":
        this.state = 1;
        break;
      case "client":
        this.state = 1;
        break;
      case "shuiloutai":
        this.state = 2;
        break;
      case "co-bank":
        this.state = 3;
        break;
      case "xyyq":
        this.state = 4;
        break;
    }
  },
  components: {
    "home-page": () => import("../common/home-page"),
    "home-component": () => import("../common/home-component"),
    "home-bank": () => import("../common/home-bank"),
    "home-xin": () => import("../common/home-xin")
  },
  mounted() {},
  methods: {}
};
</script>

<style lang="scss">
</style>
